package com.timothy.junk.gfund.bean;

/**
 * Created by IntelliJ IDEA.
 * User: qtang
 * Date: Jul 5, 2013
 * Time: 9:36:28 AM
 * To change this template use File | Settings | File Templates.
 */
public class GFundBeanResult extends GFundBean{
    private double fundAPrice;
    private double fundBPrice;
    private double fundABPrice;
    private double fundMValueLastDay;
    private double fundMIndexRise;
    private double fundMValueEstimate;
    private double discount;

    public double getFundAPrice() {
        return fundAPrice;
    }

    public void setFundAPrice(double fundAPrice) {
        this.fundAPrice = fundAPrice;
    }

    public double getFundBPrice() {
        return fundBPrice;
    }

    public void setFundBPrice(double fundBPrice) {
        this.fundBPrice = fundBPrice;
    }

    public double getFundABPrice() {
        return fundABPrice;
    }

    public void setFundABPrice(double fundABPrice) {
        this.fundABPrice = fundABPrice;
    }

    public double getFundMValueLastDay() {
        return fundMValueLastDay;
    }

    public void setFundMValueLastDay(double fundMValueLastDay) {
        this.fundMValueLastDay = fundMValueLastDay;
    }

    public double getFundMIndexRise() {
        return fundMIndexRise;
    }

    public void setFundMIndexRise(double fundMIndexRise) {
        this.fundMIndexRise = fundMIndexRise;
    }

    public double getFundMValueEstimate() {
        return fundMValueEstimate;
    }

    public void setFundMValueEstimate(double fundMValueEstimate) {
        this.fundMValueEstimate = fundMValueEstimate;
    }

    public double getDiscount() {
        return discount;
    }

    public void setDiscount(double discount) {
        this.discount = discount;
    }
    
	public GFundBeanResult() {
		super();
	}


	public GFundBeanResult(String fundACode, String fundAName, int fundAShare,
			String fundBCode, String fundBName, int fundBShare,
			String fundMCode, String fundMName, String fundMIndexCode,
			double fundMIndexRatio) {
		super(fundACode, fundAName, fundAShare, fundBCode, fundBName, fundBShare,
				fundMCode, fundMName, fundMIndexCode, fundMIndexRatio);
	}

	public GFundBeanResult(double fundAPrice, double fundBPrice,
			double fundABPrice, double fundMValueLastDay,
			double fundMIndexRise, double fundMValueEstimate, double discount) {
		super();
		this.fundAPrice = fundAPrice;
		this.fundBPrice = fundBPrice;
		this.fundABPrice = fundABPrice;
		this.fundMValueLastDay = fundMValueLastDay;
		this.fundMIndexRise = fundMIndexRise;
		this.fundMValueEstimate = fundMValueEstimate;
		this.discount = discount;
	}
	
	public GFundBeanResult(String index,String fundACode, String fundAName, int fundAShare,
			String fundBCode, String fundBName, int fundBShare,
			String fundMCode, String fundMName, String fundMIndexCode,
			double fundMIndexRatio,double fundAPrice, double fundBPrice,
			double fundABPrice, double fundMValueLastDay,
			double fundMIndexRise, double fundMValueEstimate, double discount) {
//		
//		super(fundACode, fundAName, fundAShare, fundBCode, fundBName, fundBShare,
//				fundMCode, fundMName, fundMIndexCode, fundMIndexRatio);
//		this.index = index;
		this.index = index;
		this.fundACode = fundACode;
		this.fundAName = fundAName;
		this.fundAShare = fundAShare;
		this.fundBCode = fundBCode;
		this.fundBName = fundBName;
		this.fundBShare = fundBShare;
		this.fundMCode = fundMCode;
		this.fundMName = fundMName;
		this.fundMIndexCode = fundMIndexCode;
		this.fundMIndexRatio = fundMIndexRatio;
		
		this.fundAPrice = fundAPrice;
		this.fundBPrice = fundBPrice;
		this.fundABPrice = fundABPrice;
		this.fundMValueLastDay = fundMValueLastDay;
		this.fundMIndexRise = fundMIndexRise;
		this.fundMValueEstimate = fundMValueEstimate;
		this.discount = discount;
	}

	@Override
	public String toString() {
		return "GFundBeanResult [fundAPrice=" + fundAPrice + ", fundBPrice="
				+ fundBPrice + ", fundABPrice=" + fundABPrice
				+ ", fundMValueLastDay=" + fundMValueLastDay
				+ ", fundMIndexRise=" + fundMIndexRise
				+ ", fundMValueEstimate=" + fundMValueEstimate + ", discount="
				+ discount + "]";
	}
	
	

}
